<div style="clear: both;">
    <?php echo CHtml::beginForm('', 'post', array('id' => 'yuandot_hiscaler', 'class' => 'dot_form fw_60', 'enctype'=>'multipart/form-data')); ?>
    <fieldset>
        <legend><?php echo Yii::t('common', 'please_fill_table_contents'); ?></legend>
        <dl>
            <dt><?php echo CHtml::activeLabelEx($model, 'node_id'); ?></dt>
            <dd>
                <?php
                echo CHtml::activeDropDownList($model, 'node_id',
                    CHtml::listData(Node::getCurrentLevelNodes(), 'id', 'name')
                );
                ?>
                <?php
                echo CHtml::activeLabelEx($model, 'is_recommend');
                echo CHtml::activeCheckBox($model, 'is_recommend', array('class' => 'checkbox'));
                echo CHtml::activeLabelEx($model, 'is_picking');
                echo CHtml::activeCheckBox($model, 'is_picking', array('class' => 'checkbox'));
                ?>
            </dd>

            <dt><?php echo CHtml::activeLabelEx($model, 'name'); ?></dt>
            <dd>
                <div>
                <?php
                echo CHtml::activeTextField($model, 'name', array(
                    'maxlength' => 60,
                    'class' => 'small',
                    ));
                ?>
                <?php echo CHtml::activeLabelEx($model, 'title'); ?>
                <?php
                echo CHtml::activeTextField($model, 'title', array(
                    'maxlength' => 200,
                    'class' => 'small',
                ));
                ?>
                </div>
                <div>
                    <?php echo CHtml::error($model, 'name'); ?>
                    <?php echo CHtml::error($model, 'title'); ?>
                </div>
            </dd>

            <dt><?php echo CHtml::activeLabelEx($model, 'birthday'); ?></dt>
            <dd>
                <div>
                    <?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                        'id' => 'birthday',
                        'model' => $model,
                        'language' => 'zh_cn',
                        'attribute' => 'birthday',
                        'options' => array(
                            'showAnim' => 'fold',
                            'dateFormat' => 'yy-mm-dd',
                            'changeYear' => true,
                            'changeMonth' => true,
                            'yearRange' => '1840:' . date('Y'),
                        ),
                    ));
                    ?>
                    <?php
                    echo CHtml::activeLabelEx($model, 'sex');
                    echo CHtml::activeDropDownList($model, 'sex', Options::sexOptions());
                    ?>
                </div>
                <div><?php echo CHtml::error($model, 'birthday'); ?></div>
            </dd>

            <dt><?php echo CHtml::activeLabelEx($model, 'picture_saved_path'); ?></dt>
            <dd>
                <div>
                <?php echo CHtml::activeFileField($model, 'picture_saved_path'); ?>
                </div>
                <div><?php echo CHtml::error($model, 'picture_saved_path'); ?></div>
            </dd>

            <dt><?php echo CHtml::activeLabelEx($model, 'summary'); ?></dt>
            <dd>
                <div style="width: auto; overflow:auto;">
                    <?php
                    $this->widget('application.extensions.ckeditor.CKEditor', array(
                        'model' => $model,
                        'attribute' => 'summary',
                        'language' => 'zh_cn',
                        'editorTemplate' => 'full',
                        ));
                    ?>
                </div>
                <div><?php echo CHtml::error($model, 'summary'); ?></div>
            </dd>
            
            <dt><?php echo CHtml::activeLabelEx($model, 'order_pos'); ?></dt>
            <dd>
                <div>
                    <?php echo CHtml::activeTextField($model, 'order_pos'); ?>
                    <?php
                    echo CHtml::activeLabelEx($model, 'status');
                    echo CHtml::activeDropDownList($model, 'status', Options::statusOptions());
                    ?>
                </div>
                <div><?php echo CHtml::error($model, 'order_pos'); ?></div>
            </dd>

            <dt></dt>
            <dd>
                <?php
                echo CHtml::submitButton($model->isNewRecord
                    ? Yii::t('common', 'save') : Yii::t('common', 'update'), array(
                    'class' => 'btn'
                ));
                ?>
            </dd>
        </dl>
    </fieldset>
    <?php echo CHtml::endForm(); ?>
</div>